package com.jiudaoliu.homeprototype.service.impl;

import com.jiudaoliu.homeprototype.entity.ManagerEntity;
import com.jiudaoliu.homeprototype.repository.ManagerRepostity;
import com.jiudaoliu.homeprototype.service.ManagerServie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 陈建
 * @Package com.jiudaoliu.homeprototype.service.impl
 * @Description:
 * @date 2018/9/21 11:54
 */
@Service
@Transactional
public class ManagerServiceImpl implements ManagerServie {

    @Autowired
    private ManagerRepostity managerRepostity;

    @Override
    public List<ManagerEntity> findByName(String name) {
        return managerRepostity.findByName(name);
    }
}
